package main

import (
	"fmt"
)

func main() {
	fmt.Println("sssss")

	//	startHttp()

	//chrome 自动化测试
	//chromeDriver()
	//Check()
	//测试 求向量夹角

	/*	vector1 := Vector3{
			0,
			1,
			0,
		}
		vector2 := Vector3{
			1,
			0,
			0,
		}
		rs := GetAngle(vector1, vector2)
		s := fmt.Sprintf("sssss %f", rs)
		fmt.Println(s)*/
	//测试etcd注册中心客户端
	//	client.ClientMain()
	//测试etcd 注册中心服务端
	//serverr.ServerMain()
	//测试官方扩展包 singleFlight
	//TestSingleFlight()

	//OpenPprof()
	//测试获取内存变量
	//GetVarSize()

	//测试map并发读写
	//MapConcurrentErr() //并发不安全 产品错误
	//SyncMapConcurrent() //sync map

	//测试 dec加密苏算法
	//encryptRes := DesEncrypt()
	//fmt.Println("decrypt res:", encryptRes)

	//测试指数型衰变
	//ExponentialDecay()

	//testCloseChan()
	//UdpServer()
	//UdpClient()
	/*fmt.Println("Kafka Demo RUN:")
	//创建topic
	KafkaCreateTopic()
	//创建生产者
	go KafkaProducer()
	//创建消费者
	go KafkaConsumer("group1")
	go KafkaConsumer("group1")
	go KafkaConsumer("group2")

	sigchan := make(chan os.Signal, 1)
	signal.Notify(sigchan, syscall.SIGINT, syscall.SIGTERM)
	run := true
	for run {
		select {
		case sig := <-sigchan:
			fmt.Printf("Caught signal %v: terminating\n", sig)
			run = false
		}
	}
	fmt.Println("Kafka Demo END")*/

	/*
		fmt.Println("ETCD Demo RUN:")
		runEtcdDemo()
		fmt.Println("ETCD Demo END")
	*/

}
